﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="Summary.aspx.cs" Inherits="CheckLeave_Summary" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <table style="width: 606px">
          <!--DWLayoutTable-->
            <tr>
                <td style="width: 332px">
                    开始时间：<asp:TextBox ID="txtStartTime" runat="server"></asp:TextBox></td>
                <td colspan="2" style="width: 349px">
                    结束时间：<asp:TextBox ID="txtEndTime" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td height="21" valign="top" style="width: 332px">&nbsp;                
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEndTime"
                        ErrorMessage="结束时间不能为空"></asp:RequiredFieldValidator></td>
                <td colspan="2" valign="top">&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtStartTime"
                        ErrorMessage="开始时间不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px">
                    <asp:Panel ID="Panel1" runat="server" Height="25px" Width="314px">
                        请选择要查看的部门：<asp:DropDownList ID="cmbDeptList" runat="server" Width="153px" OnSelectedIndexChanged="cmbDeptList_SelectedIndexChanged">
                        </asp:DropDownList></asp:Panel>                </td>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px">
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" />
                    <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Width="592px" OnRowCommand="grdResult_RowCommand">                    
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField HeaderText="员工姓名" DataField="EmployeeName" />
                            <asp:BoundField HeaderText="请假次数" DataField="LeaveCount" />
                            <asp:BoundField HeaderText="总小时数" DataField="TotalHours" />
                            <asp:BoundField HeaderText="可用的小时数" DataField="LeftHours" />
                            <asp:HyperLinkField DataNavigateUrlFields="EmployeeID" DataNavigateUrlFormatString="Individual.aspx?id={0}"
                                HeaderText="详细情况" Text="进入" />
                        </Columns>
                        <RowStyle BackColor="#EFF3FB" />
                        <EditRowStyle BackColor="#2461BF" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>                </td>
            </tr>
            <tr>
                <td align="center" colspan="3" rowspan="2">
                    <asp:Panel ID="Panel2" runat="server" Height="185px" Visible="False" Width="590px">
                        &nbsp;<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        ForeColor="#333333" GridLines="None" Visible="False" Width="591px">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField HeaderText="开始时间" />
                            <asp:BoundField HeaderText="结束时间" />
                            <asp:BoundField HeaderText="提交时间" />
                            <asp:BoundField HeaderText="状态" />
                            <asp:BoundField HeaderText="小时数" />
                            <asp:ButtonField Text="详细情况..." />
                        </Columns>
                        <RowStyle BackColor="#EFF3FB" />
                        <EditRowStyle BackColor="#2461BF" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    <asp:Button ID="back" runat="server" Text="后退" /></asp:Panel>
                    &nbsp;
                </td>
            </tr>
            <tr>
            </tr>
        </table>
    
    </div>
</asp:Content>